﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=EDGE;IE=11;IE=8,chrome=1" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>叶片温度查看</title>
    <link href="/InSiteWebApplication/Content/Easyui/themes/metro/easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/custom-easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/themes/icon.css" rel="stylesheet" />
</head>
<body>
    <div style="width: 800px">
        <div class="ufcSectionStyle">
            <span class="ufcSectionSpanStyle">工序信息</span>
        </div>
        <table id="gdStepTemInfo" class="easyui-datagrid" style="width: 100%; height: 450px;"
            data-options="">
        </table>
    </div>
</body>
</html>
<script src="/InSiteWebApplication/Content/Easyui/jquery.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/json2.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/CustomCommon.js" type="text/javascript"></script>
<script type="text/javascript">
    var page = {
        rootPath: getRootPath(),
        init: function () {
            page.bind();
            page.bindTemTable();
        },
        bind: function () {
            //批次列表
            $("#gdStepTemInfo").datagrid({
                columns: [[
		         { field: 'SPECNO', title: '工序号', width: 180 },
                 { field: 'SPECDESC', title: '工序名', width: 200 },
                 { field: 'TEMPERATURENAME', title: '温度名', width: 200 },
                 { field: 'TEMPERATUREVALUE', title: '温度值', width: 200 }
                ]]
            });
        },

        //获取温度数据
        bindTemTable: function () {
            var containerId = getParam("containerId");
            var specNo = getParam("specNo");
            var steoformData = {
                action: "GetStepTemInfo",
                containerId: containerId,
                specNo: specNo
            };
            $.ajax({
                type: "Post",
                url: page.rootPath + "/Ashx/YePianContainer/YPContaienrTemperatureHandler.ashx",
                data: steoformData,
                cashe: false,
                success: function (data) {
                    $("#gdStepTemInfo").datagrid('loaded');
                    var result = JSON.parse(data);
                    $("#gdStepTemInfo").datagrid('loadData', { rows: result.DBTable });
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    alert(XMLHttpRequest.responseText);
                }
            });
        }
    }
    page.init();
</script>
